const mongoose =require("mongoose");
const Schema=mongoose.Schema;

//Create Scahema
const ProcessReturnBillSchema=new Schema({
    name:{//品名
        type:String,
        required:true
    },
    number:{//品号
        type:String,
        required:true
    },
    piece:{//匹数
        type:Number,
        required:true
    },
    length:{//米数
        type:Number,
        required:true
    },
    warehouse:{//仓库
        type:String,
        required:true
    },
    company:{
        type:String,
        required:true
    },
    rate:{
        type:Number,
        required:true
    },
    date:{
        type:Date,
        required:true
    },
    operator:{//操作人员
        type:String,
        required:true
    },
    dateFill:{//填写日期
        type:Date,
        default:Date.now
    },
    remark:{//备注
        type:String,
    }
})

module.exports=mongoose.model("ProcessReturnBill",ProcessReturnBillSchema);